package com.hxl.access.controller;

import com.hxl.access.entity.Orderlist;
import com.hxl.access.service.OrderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 功能描述
 *
 * @author: hxl
 * @date: 2024年01月03日 15:26
 */
@RestController
@RequestMapping("/OrderList")
public class OrderListController {
    @Autowired
    private OrderListService orderListService;

    @GetMapping("/findOrderListAll")
    public List<Orderlist> findOrderListAll() {
        List<Orderlist> list = orderListService.findOrderListAll();
        return list;
    }
}
